package com.mine.dao;

import com.mine.pojo.Meal;
import com.mine.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {

    boolean addUser(User user);

    User getUserByName(String name);

    boolean updateUser(User user);

    void modifyUserPassword(User user);

    void addMealCollect(@Param("collect") String collect,@Param("username") String username);

    List<Meal> queryCollectMealByUser(List list);

    List<User> queryAllUser();
}
